import request from '@/router/axios'

export function fetchHisDrugSkinList(query) {
  return request({
    url: '/his/hisdrugskin/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugSkinObj(obj) {
  return request({
    url: '/his/hisdrugskin',
    method: 'post',
    data: obj
  })
}

export function getHisDrugSkinObj(id) {
  return request({
    url: '/his/hisdrugskin/' + id,
    method: 'get'
  })
}

export function delHisDrugSkinObj(id) {
  return request({
    url: '/his/hisdrugskin/' + id,
    method: 'delete'
  })
}

export function putHisDrugSkinObj(obj) {
  return request({
    url: '/his/hisdrugskin',
    method: 'put',
    data: obj
  })
}
